/*
 * @Author: many
 * @Date: 2020-06-21 18:40:11
 * @LastEditors: delldi
 * @LastEditTime: 2020-06-21 18:48:39
 * @Description: file content
 */ 
import defaultSettings from '../settings'

const title = defaultSettings.title || '首页'

export default function getPageTitle(meta) {
  const hasTitle = meta.title
  if (hasTitle) {
    const pageName = hasTitle
    return `${pageName} - ${title}`
  }
  return `${title}`
}
